package com.chenyongjing.design.pattern.factory.abstractfactory;

public class Client {
    public static void main(String[] args){
        HonourFactory honourFactory =new HonourFactory();
        IPhoneProduct iPhoneProduct = honourFactory.iphoneProduct();
        iPhoneProduct.callup();
        iPhoneProduct.sendSMS();

        IRouterProduct iRouterProduct = honourFactory.iRouterProduct();
        iRouterProduct.openWifi();

        HuaweiFactory huaweiFactory = new HuaweiFactory();
        IPhoneProduct huaweiPhone  = huaweiFactory.iphoneProduct();
        huaweiPhone.callup();
        huaweiPhone.sendSMS();

        IRouterProduct huaweiRoter = huaweiFactory.iRouterProduct();
        huaweiRoter.openWifi();
    }

}
